import 'package:get/get.dart';
import '../pages/tabs/User.dart';
import '../pages/ProductContent.dart';
import '../pages/ProductList.dart';
import '../pages/tabs/Cart.dart';
import '../pages/Address/AddressAdd.dart';
import '../pages/Address/AddressEdit.dart';
import '../pages/Address/AddressList.dart';
import '../pages/User/Login.dart';
import '../pages/User/Order.dart';
import '../pages/User/settings.dart';
import '../pages/CheckOut.dart';
import '../pages/OrderInfo.dart';
import '../pages/Pay.dart';
import '../pages/RegisterFirst.dart';
import '../pages/RegisterSecond.dart';
import '../pages/RegisterThird.dart';
import '../pages/tabs/Tabs.dart';
import '../pages/Search.dart';

class AppPage {
  static final routes = [
    GetPage(
      name: "/",
      page: () => const Tabs(),
      transition: Transition.fadeIn, // 淡入
    ),
    GetPage(name: "/search", page: () => const SearchPage()),
    GetPage(name: "/cart", page: () => const CartPage()),
    GetPage(name: "/login", page: () => const LoginPage()),
    GetPage(name: "/registerFirst", page: () => const RegisterFirstPage()),
    GetPage(name: "/registerSecond", page: () => const RegisterSecondPage()),
    GetPage(name: "/registerThird", page: () => const RegisterThirdPage()),
    GetPage(name: "/productList", page: () => const ProductListPage()),
    GetPage(name: "/productContent", page: () => const ProductContentPage()),
    GetPage(name: "/checkOut", page: () => const CheckOutPage()),
    GetPage(name: "/addressAdd", page: () => const AddressAddPage()),
    GetPage(name: "/addressEdit", page: () => const AddressEditPage()),
    GetPage(name: "/addressList", page: () => const AddressListPage()),
    GetPage(name: "/pay", page: () => const PayPage()),
    GetPage(name: "/order", page: () => const OrderPage()),
    GetPage(name: "/orderinfo", page: () => const OrderInfoPage()),
    GetPage(name: "/settings", page: () => const SettingsPage()),
    GetPage(name: "/user", page: () => const UserPage()),
  ];
}
